//
//  CarouselCell.m
//  sensen_ios
//
//  Created by pro on 16/4/22.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "CarouselCell.h"
#import "CarouselView.h"
@implementation CarouselCell



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self _createCarouselView];
    }
    
    return self;
}

// 轮播视图
- (void)_createCarouselView {
    
    self.carouselView = [[CarouselView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_WIDTH) timerDuration:3 carouselAmount:3];
    self.carouselView.isSquare = YES;
    [self addSubview:self.carouselView];
}

@end
